import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DickYang
 * Date: 2023-07-18
 * Time: 20:40
 */
public class TestMyHeap {
    public static void main(String[] args) {
        MyHeap myHeap = new MyHeap();
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        myHeap.initHeap(array);
        myHeap.createBigHeap(array);
        myHeap.HeapSort(array);


//        myHeap.initHeap(array);
//
//        myHeap.createBigHeap(array);

//        System.out.print("小根堆: ");
//        myHeap.createSmallHeap(array);

//        myHeap.offer(80);

//        myHeap.pop();
//        System.out.println(myHeap.peek());

//        int[] arr = {27,15,19,18,28,34,65,49,25,37};
//        int[] ret = myHeap.maxK(arr,3);
//        System.out.println(Arrays.toString(ret));



    }
}
